package com.ycfmedical.bed.local.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

import cn.droidlover.xdroidmvp.event.IBus;

/**
 * Created by Egoist on 2017/3/14.
 */
@Entity
public class User implements IBus.IEvent{

    @Id(autoincrement = false)
    public Long id;
    public String bedId;

    // IM账号
    public String imAccount;
    // 刷卡卡号
    public String medicalCard;

    private int age;

    private int height;
    private String sex;
    private String name;

    private String allergicHistory;//过敏历史
    private String symptom;//症状
    private String disease;//疾病

    private String doctorName;
    private Long doctorId;

    private String nurseName;
    private Long nurseId;

    private String userPhone;
    private String enmergenPhone;//紧急联系人电话

    private String treatment;//养护措施
    private String treatmentArrange;//治疗安排
    private int countBalance;//账户余额

    @Generated(hash = 1202541037)
    public User(Long id, String bedId, String imAccount, String medicalCard, int age, int height,
            String sex, String name, String allergicHistory, String symptom, String disease,
            String doctorName, Long doctorId, String nurseName, Long nurseId, String userPhone,
            String enmergenPhone, String treatment, String treatmentArrange, int countBalance) {
        this.id = id;
        this.bedId = bedId;
        this.imAccount = imAccount;
        this.medicalCard = medicalCard;
        this.age = age;
        this.height = height;
        this.sex = sex;
        this.name = name;
        this.allergicHistory = allergicHistory;
        this.symptom = symptom;
        this.disease = disease;
        this.doctorName = doctorName;
        this.doctorId = doctorId;
        this.nurseName = nurseName;
        this.nurseId = nurseId;
        this.userPhone = userPhone;
        this.enmergenPhone = enmergenPhone;
        this.treatment = treatment;
        this.treatmentArrange = treatmentArrange;
        this.countBalance = countBalance;
    }
    @Generated(hash = 586692638)
    public User() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getBedId() {
        return this.bedId;
    }
    public void setBedId(String bedId) {
        this.bedId = bedId;
    }
    public String getImAccount() {
        return this.imAccount;
    }
    public void setImAccount(String imAccount) {
        this.imAccount = imAccount;
    }
    public String getMedicalCard() {
        return this.medicalCard;
    }
    public void setMedicalCard(String medicalCard) {
        this.medicalCard = medicalCard;
    }
    public int getAge() {
        return this.age;
    }
    public void setAge(int age) {
        this.age = age;
    }
    public int getHeight() {
        return this.height;
    }
    public void setHeight(int height) {
        this.height = height;
    }
    public String getSex() {
        return this.sex;
    }
    public void setSex(String sex) {
        this.sex = sex;
    }
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getAllergicHistory() {
        return this.allergicHistory;
    }
    public void setAllergicHistory(String allergicHistory) {
        this.allergicHistory = allergicHistory;
    }
    public String getSymptom() {
        return this.symptom;
    }
    public void setSymptom(String symptom) {
        this.symptom = symptom;
    }
    public String getDisease() {
        return this.disease;
    }
    public void setDisease(String disease) {
        this.disease = disease;
    }
    public String getDoctorName() {
        return this.doctorName;
    }
    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }
    public Long getDoctorId() {
        return this.doctorId;
    }
    public void setDoctorId(Long doctorId) {
        this.doctorId = doctorId;
    }
    public String getNurseName() {
        return this.nurseName;
    }
    public void setNurseName(String nurseName) {
        this.nurseName = nurseName;
    }
    public Long getNurseId() {
        return this.nurseId;
    }
    public void setNurseId(Long nurseId) {
        this.nurseId = nurseId;
    }
    public String getUserPhone() {
        return this.userPhone;
    }
    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }
    public String getEnmergenPhone() {
        return this.enmergenPhone;
    }
    public void setEnmergenPhone(String enmergenPhone) {
        this.enmergenPhone = enmergenPhone;
    }
    public String getTreatment() {
        return this.treatment;
    }
    public void setTreatment(String treatment) {
        this.treatment = treatment;
    }
    public String getTreatmentArrange() {
        return this.treatmentArrange;
    }
    public void setTreatmentArrange(String treatmentArrange) {
        this.treatmentArrange = treatmentArrange;
    }
    public int getCountBalance() {
        return this.countBalance;
    }
    public void setCountBalance(int countBalance) {
        this.countBalance = countBalance;
    }

    @Override
    public String toString() {
        return "id"+getId()+",bedid"+getBedId()+"name:" + getName() + ",imAccount:" + getImAccount()+ ",disease:" + getDisease();
    }

    @Override
    public int getTag() {
        return 0;
    }
}
